<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>$Title$</title>
  </head>
  <body>
    <h1>index.jsp</h1>
    <%--上传文件 method要为post  enctype一定要写--%>
  <form action="uploadtest" method="post" enctype="multipart/form-data">
       姓名:<input type="text" name="uname"><br>
       图片:<input type="file" name="pic"><br>
       <input type="submit" value="上传">
  </form>
  </body>
</html>
